package cn.gson.crm.controller;

import cn.gson.crm.model.pojos.Linkman;
import cn.gson.crm.model.pojos.Shuliang;
import cn.gson.crm.model.service.LinkmanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/linkman")
public class LinkmanController {
    @Autowired
    LinkmanService linkmanService;

    @RequestMapping("/selectlinkman")
    @ResponseBody
    public List<Shuliang> selectlinkman(){
        return linkmanService.selectlinkman();
    }
}
